{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i>
    首页 <span class="c-gray en">&gt;</span> 权限管理
    <span class="c-gray en">&gt;</span> 菜单列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">

    <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l">
        <a href="javascript:;" onclick="datadel('{:url('Auth/rule_del')}')" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>

        <a href="javascript:;" onclick="add('添加/编辑','{:url('Auth/rule_add')}')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加菜单</a>
    </span> <span class="r">共有数据：<strong id="count">{:count($list)}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-bg table-hover">
        <thead>
            <tr>
                <th scope="col" colspan="9">房间列表</th>
            </tr>
            <tr class="text-c">
				<th width="25"><input type="checkbox" name="" value=""></th>
				<th width="25">排序</th>
				<th width="50">ID</th>
				<th width="200">菜单</th>
				<th width="60">状态</th>
				<th width="120">操作</th>
			</tr>
        </thead>
        <tbody>
            {foreach $list as $k=>$v}
            <tr class="text-c">
                <td><input type="checkbox" value="{$v.id}" name="del[]"></td>
                <td><input type="text" class="input-text text-c" value="{$v.sort}" name="sort[{$v.id}]"/></td>
                <td>{$k+1}</td>
                <td class="text-l">{:str_repeat(' ├──&nbsp;&nbsp;', $v['level'])}&nbsp;{$v.title}</td>
                <td>
                	<img src="/static/admin/static/h-ui/images/validform/iconpic-right.png" style="cursor:pointer;" onclick="toggle_status(this,{$v.id},{$v.status},'auth_rule','status')">
                </td>
                <td class="td-manage">
                	<a style="text-decoration:none" class="btn btn-success ml-5" onClick="new_open('角色编辑','{:url('rule_add',array('id'=>$v['id']))}')" href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a> 
                    <a title="删除" href="javascript:;" onclick="data_del(this,'{:url('rule_del')}','{$v.id}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>
                </td>            </tr>
            {/foreach}
        </tbody>
    </table>

</div>

{include file="public/footer" /}
<script type="text/javascript">


</script>

